package test1;

import test2.TooBigException;

import java.io.File;

public class test {
    public static void main(String[] args){
      /*  File f=new File("d\\a,txt");
        System.out.println(f.getAbsoluteFile());
        System.out.println(f.length());
        System.out.println(f.canRead());
        File e=new File("d:\\hsp.txt");
        if(!e.exists()){
            try{
                e.createNewFile();
            }catch (Exception n){
                n.printStackTrace();
            }
        }else {
            System.out.println("you");
        }*/
      File f=new File("d:\\ff");
      if(f.isDirectory()){
          File lists[]=f.listFiles();
          for(int i=0;i<lists.length;i++){
              System.out.println("file"+lists[i].getName());
          }
      }
    }
}
